﻿using AutoMapper;
using RearLivestock.Beginning.Api.Application.Command.BreedingSow;
using RearLivestock.Beginning.Api.Application.Command.ChangeHouse;
using RearLivestock.Beginning.Api.Application.Command.Condition;
using RearLivestock.Beginning.Api.Application.Command.Farrowing;
using RearLivestock.Beginning.Api.Application.Command.Infancie;
using RearLivestock.Beginning.Api.Application.Command.PigArchives;
using RearLivestock.Beginning.Api.Application.Command.PigBreedings;
using RearLivestock.Beginning.Api.Application.Command.PigDeath;
using RearLivestock.Beginning.Api.Application.Command.PigHistorys;
using RearLivestock.Beginning.Api.Application.Command.PigletsWeanings;
using RearLivestock.Beginning.Api.Application.Command.PigWeighings;
using RearLivestock.Beginning.Api.Application.Command.PrenatalCheckup;
using RearLivestock.Beginning.Api.Application.Command.ScionChange;
using RearLivestock.Common.Domains.hhx;
using RearLivestock.Common.Domains.hq;
using RearLivestock.Common.Domains.wbx;
using RearLivestock.Common.Domains.zjy;

namespace RearLivestock.Beginning.Api.Common
{
    /// <summary>
    /// 配置AutoMapper映射
    /// </summary>
    public class AutoMapperProfile : Profile
    {
        /// <summary>
        /// AutoMapperProfile
        /// </summary>
        public AutoMapperProfile()
        {
            //公猪期初添加
            CreateMap<AddInfanciesCommand, Infancies>();
            //种母妊检添加
            CreateMap<CreatePrenatalCheckupCommand, PrenatalCheckups>();
            //母猪分娩添加
            CreateMap<AddFarrowingsCommmand, Farrowings>();
            //母猪分娩修改
            CreateMap<UpdateFarrowingsCommand, Farrowings>();
            //猪只转舍修改
            CreateMap<AddChangeHouseCommand, ChangeHouses>();
            //后裔转种
            CreateMap<AddScionChangeCommand, ScionChanges>();
            //基本信息添加
            CreateMap<AddBasicCommand, BasicInformation>();
            //猪只历史添加
            CreateMap<AddPigHistoryCommand, PigHistory>();
            //仔猪断奶添加
            CreateMap<AddPigletsWeaningCommand, PigletsWeaning>();
            //猪只称重添加
            CreateMap<AddPigsWeighingCommand, PigsWeighing>();
            //种母配种
            CreateMap<AddPigsBreedingCommand, PigsBreeding>();
            //种母期初
            CreateMap<CreateBreedingSowCommand, BreedingSows>();
            //猪只死亡添加
            CreateMap<AddPigDeathCommand, PigDeaths>();
            //修改种母妊检
            CreateMap<UpdatePrenatalCheckupCommand, PrenatalCheckups>();
            //品相添加
            CreateMap<AddConditionCommand, Conditions>();
        }
    }
}
